/**
 * Project Name:smcs-mass-dns-ipcheck
 * File Name:IpBean.java
 * Package Name:com.surfilter.massdata.ipcheck.bean
 * Date:2015-3-7下午03:09:51
 * Copyright (c) 2015, Shenzhen Surfilter Network Technology Co.,Ltd All Rights Reserved.
 * 
 */

package com.surfilter.massdata.spark.bean;


import java.io.Serializable;

import org.apache.commons.logging.Log;


/**
 * ClassName:IpBean <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON. <br/>
 * Date: 2015-3-7 下午03:09:51 <br/>
 * 
 * @author sunkai
 * @version
 * @since JDK 1.7
 * @see
 */
public class IpBean implements Serializable {
	
	private static final long serialVersionUID = 1L;
	//备案分配库
	private Long id;
	private Long bbdw_id;   //来源库里叫bbdw
	private Long sbsj;
	private Integer iplx;
	private Long qsip;
	private Long zzip;
	private Long sfgn;
	private Long fpfs;
	private Long fpdx;
	private Long syfs;
	private Long fprq;
	private Integer ymtzfwq;
	private String dwmc;
	private Long dwxz;
	private Long dwxzjb;
	private Long dwfl;
	private Long dwhyfl;
	private String jyxkzh;
	private Long shengid;
	private Long shiid;
	private Long xianid;
	private String xxdz;
	private String lxrxm;
	private String lxrdh;
	private String lxrdzyj;
	private Long wgip;
	private String wgdz;
	private String bz;
	private Long ipsss;
	private Integer jtiplx;
	private String ipssjf;
	
	//备案来源库
	private Long lyid;//来源库里叫lydw
	
	
	//上报分配/来源库
	private String sourceIdcId;
	private String reportIdcId;
	private Integer reportType;
	private Long lastModifyTime;
	private Integer isWarn;
	
	private String storageType;
	private String tflag;
	private Boolean isPass;
	private Integer conflictType; 
	
	private Log log;
	
	
	private String houseCode;
	private String houseName;
	
	
	private String operatorsId;
	private String operatorsName;
	private String operatorsBh;
	
	public IpBean() {
	}
	
	public IpBean(Log log){
		this.log = log;
	}
	
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(id).append("\t");
		sb.append(bbdw_id).append("\t");
		sb.append(sbsj).append("\t");
		sb.append(iplx).append("\t");
		sb.append(qsip).append("\t");
		sb.append(zzip).append("\t");
		sb.append(sfgn).append("\t");
		sb.append(fpfs).append("\t");
		sb.append(fpdx).append("\t");
		sb.append(syfs).append("\t");
		sb.append(fprq).append("\t");
		sb.append(ymtzfwq).append("\t");
		sb.append(dwmc).append("\t");
		sb.append(dwxz).append("\t");
		sb.append(dwxzjb).append("\t");
		sb.append(dwfl).append("\t");
		sb.append(dwhyfl).append("\t");
		sb.append(jyxkzh).append("\t");
		sb.append(shengid).append("\t");
		sb.append(shiid).append("\t");
		sb.append(xianid).append("\t");
		sb.append(xxdz).append("\t");
		sb.append(lxrxm).append("\t");
		sb.append(lxrdh).append("\t");
		sb.append(lxrdzyj).append("\t");
		sb.append(wgip).append("\t");
		sb.append(wgdz).append("\t");
		sb.append(bz).append("\t");
		sb.append(ipsss).append("\t");
		sb.append(jtiplx).append("\t");
		sb.append(getIpssjf()).append("\t");
		sb.append(lyid).append("\t");
		sb.append(sourceIdcId).append("\t");
		sb.append(reportIdcId).append("\t");
		sb.append(reportType).append("\t");
		sb.append(lastModifyTime).append("\t");
		sb.append(isWarn).append("\t");
		sb.append(storageType).append("\t");
		sb.append(tflag).append("\t");
		sb.append(isPass).append("\t");
		sb.append(conflictType).append("\t");
		sb.append(houseCode).append("\t");
		sb.append(houseName).append("\t");
		sb.append(operatorsId).append("\t");
		sb.append(operatorsName).append("\t");
		sb.append(operatorsBh).append("\t");
		sb.append(jtiplx);
		return sb.toString();
	}
	
	
	
	
	public String simpleBean() {
		StringBuffer sb = new StringBuffer();
		sb.append(0).append("\t");
		sb.append(bbdw_id).append("\t");//--
		sb.append(0).append("\t");//sbsj
		sb.append(iplx).append("\t");//--
		sb.append(0).append("\t");//qsip
		sb.append(0).append("\t");//zzip
		sb.append(0).append("\t");//sfgn
		sb.append(fpfs).append("\t");//--
		sb.append(0).append("\t");//fpdx
		sb.append(syfs).append("\t");//--
		sb.append(0).append("\t");//fprq
		sb.append(0).append("\t");//ymtzfwq
		sb.append(0).append("\t");//dwmc
		sb.append(0).append("\t");//dwxz
		sb.append(0).append("\t");//dwxzjb
		sb.append(0).append("\t");//dwfl
		sb.append(0).append("\t");//dwhyfl
		sb.append(0).append("\t");//jyxkzh
		sb.append(shengid).append("\t");//--
		sb.append(shiid).append("\t");//--
		sb.append(xianid).append("\t");//--
		sb.append(0).append("\t");//xxdz
		sb.append(0).append("\t");//lxrxm
		sb.append(0).append("\t");//lxrdh
		sb.append(0).append("\t");//lxrdzyj
		sb.append(0).append("\t");//wgip
		sb.append(0).append("\t");//wgdz
		sb.append(0).append("\t");//bz
		sb.append(0).append("\t");//ipsss
		sb.append(0).append("\t");//jtiplx
		sb.append(0).append("\t");//getIpssjf()
		sb.append(0).append("\t");//lyid
		sb.append(0).append("\t");//sourceIdcId
		sb.append(0).append("\t");//reportIdcId
		sb.append(0).append("\t");//reportType
		sb.append(0).append("\t");//lastModifyTime
		sb.append(0).append("\t");//isWarn
		sb.append(0).append("\t");//storageType
		sb.append(0).append("\t");//tflag
		sb.append(0).append("\t");//isPass
		sb.append(0).append("\t");//conflictType
		sb.append(houseCode).append("\t");//--
		sb.append(0).append("\t");//houseName
		sb.append(operatorsId).append("\t");//--
		sb.append(0).append("\t");//operatorsName
		sb.append(0).append("\t");//operatorsBh
		sb.append(0);//jtiplx
		return sb.toString();
	}
	
	public static IpBean copyipBean(IpBean ipBean, IpBean copyBean) {
		ipBean.setSfgn(copyBean.getSfgn());
		ipBean.setFpdx(copyBean.getFpdx());
		ipBean.setFprq(copyBean.getFprq());
		ipBean.setYmtzfwq(copyBean.getYmtzfwq());
		ipBean.setDwmc(copyBean.getDwmc());
		ipBean.setDwxz(copyBean.getDwxz());
		ipBean.setDwxzjb(copyBean.getDwxzjb());
		ipBean.setDwfl(copyBean.getDwfl());
		ipBean.setDwhyfl(copyBean.getDwhyfl());
		ipBean.setJyxkzh(copyBean.getJyxkzh());
		ipBean.setXxdz(copyBean.getXxdz());
		ipBean.setLxrxm(copyBean.getLxrxm());
		ipBean.setLxrdh(copyBean.getLxrdh());
		ipBean.setLxrdzyj(copyBean.getLxrdzyj());
		ipBean.setWgip(copyBean.getWgip());
		ipBean.setWgdz(copyBean.getWgdz());
		ipBean.setBz(copyBean.getBz());
		ipBean.setIpsss(copyBean.getIpsss());
		ipBean.setJtiplx(copyBean.getJtiplx());
		ipBean.setIpssjf(copyBean.getIpssjf());
		ipBean.setLyid(copyBean.getLyid());
		ipBean.setSourceIdcId(copyBean.getSourceIdcId());
		ipBean.setReportIdcId(copyBean.getReportIdcId());
		ipBean.setReportType(copyBean.getReportType());
		ipBean.setLastModifyTime(copyBean.getLastModifyTime());
		ipBean.setIsWarn(copyBean.getIsWarn());
		ipBean.setStorageType(copyBean.getStorageType());
		ipBean.setTflag(copyBean.getTflag());
		ipBean.setIsPass(copyBean.getIsPass());
		ipBean.setConflictType(copyBean.getConflictType());
		ipBean.setHouseName(copyBean.getHouseName());
		ipBean.setOperatorsName(copyBean.getOperatorsName());
		ipBean.setOperatorsBh(copyBean.getOperatorsBh());
		ipBean.setJtiplx(copyBean.getJtiplx());
		return ipBean;
		
	}
	
	
	 
	
	
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setQsip(Long qsip) {
		this.qsip = qsip;
	}

	public Long getQsip() {
		return qsip;
	}

	public void setZzip(Long zzip) {
		this.zzip = zzip;
	}

	public Long getZzip() {
		return zzip;
	}

	public void setBbdw_id(Long bbdw_id) {
		this.bbdw_id = bbdw_id;
	}

	public Long getBbdw_id() {
		return bbdw_id;
	}

	public void setLyid(Long lyid) {
		this.lyid = lyid;
	}

	public Long getLyid() {
		return lyid;
	}

	public void setFpdx(Long fpdx) {
		this.fpdx = fpdx;
	}

	public Long getFpdx() {
		return fpdx;
	}

	public void setDwmc(String dwmc) {
		this.dwmc = dwmc;
	}

	public String getDwmc() {
		return dwmc;
	}

	public void setFpfs(Long fpfs) {
		this.fpfs = fpfs;
	}

	public Long getFpfs() {
		return fpfs;
	}

	public void setSyfs(Long syfs) {
		this.syfs = syfs;
	}

	public Long getSyfs() {
		return syfs;
	}

	public void setSfgn(Long sfgn) {
		this.sfgn = sfgn;
	}

	public Long getSfgn() {
		return sfgn;
	}

	public void setTflag(String tflag) {
		this.tflag = tflag;
	}

	public String getTflag() {
		return tflag;
	}

	public void setStorageType(String storageType) {
		this.storageType = storageType;
	}

	public String getStorageType() {
		return storageType;
	}

	public void setIsPass(Boolean isPass) {
		this.isPass = isPass;
	}

	public Boolean getIsPass() {
		return isPass;
	}

	public void setConflictType(Integer conflictType) {
		this.conflictType = conflictType;
	}

	public Integer getConflictType() {
		return conflictType;
	}

	public void setSbsj(Long sbsj) {
		this.sbsj = sbsj;
	}

	public Long getSbsj() {
		return sbsj;
	}

	public void setIplx(Integer iplx) {
		this.iplx = iplx;
	}

	public Integer getIplx() {
		return iplx;
	}

	public void setFprq(Long fprq) {
		this.fprq = fprq;
	}

	public Long getFprq() {
		return fprq;
	}

	public void setYmtzfwq(Integer ymtzfwq) {
		this.ymtzfwq = ymtzfwq;
	}

	public Integer getYmtzfwq() {
		return ymtzfwq;
	}

	public void setDwxz(Long dwxz) {
		this.dwxz = dwxz;
	}

	public Long getDwxz() {
		return dwxz;
	}

	public void setDwxzjb(Long dwxzjb) {
		this.dwxzjb = dwxzjb;
	}

	public Long getDwxzjb() {
		return dwxzjb;
	}

	public void setDwfl(Long dwfl) {
		this.dwfl = dwfl;
	}

	public Long getDwfl() {
		return dwfl;
	}

	public void setDwhyfl(Long dwhyfl) {
		this.dwhyfl = dwhyfl;
	}

	public Long getDwhyfl() {
		return dwhyfl;
	}

	public void setJyxkzh(String jyxkzh) {
		this.jyxkzh = jyxkzh;
	}

	public String getJyxkzh() {
		return jyxkzh;
	}

	public void setShengid(Long shengid) {
		this.shengid = shengid;
	}

	public Long getShengid() {
		return shengid;
	}

	public void setShiid(Long shiid) {
		this.shiid = shiid;
	}

	public Long getShiid() {
		return shiid;
	}

	public void setXianid(Long xianid) {
		this.xianid = xianid;
	}

	public Long getXianid() {
		return xianid;
	}

	public void setXxdz(String xxdz) {
		this.xxdz = xxdz;
	}

	public String getXxdz() {
		return xxdz;
	}

	public void setLxrxm(String lxrxm) {
		this.lxrxm = lxrxm;
	}

	public String getLxrxm() {
		return lxrxm;
	}

	public void setLxrdh(String lxrdh) {
		this.lxrdh = lxrdh;
	}

	public String getLxrdh() {
		return lxrdh;
	}

	public void setLxrdzyj(String lxrdzyj) {
		this.lxrdzyj = lxrdzyj;
	}

	public String getLxrdzyj() {
		return lxrdzyj;
	}

	public void setWgip(Long wgip) {
		this.wgip = wgip;
	}

	public Long getWgip() {
		return wgip;
	}

	public void setWgdz(String wgdz) {
		this.wgdz = wgdz;
	}

	public String getWgdz() {
		return wgdz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public String getBz() {
		return bz;
	}

	public void setIpsss(Long ipsss) {
		this.ipsss = ipsss;
	}

	public Long getIpsss() {
		return ipsss;
	}

	public void setJtiplx(Integer jtiplx) {
		this.jtiplx = jtiplx;
	}

	public Integer getJtiplx() {
		return jtiplx;
	}

	public void setSourceIdcId(String sourceIdcId) {
		this.sourceIdcId = sourceIdcId;
	}

	public String getSourceIdcId() {
		return sourceIdcId;
	}

	public void setReportIdcId(String reportIdcId) {
		this.reportIdcId = reportIdcId;
	}

	public String getReportIdcId() {
		return reportIdcId;
	}

	public void setReportType(Integer reportType) {
		this.reportType = reportType;
	}

	public Integer getReportType() {
		return reportType;
	}

	public void setLastModifyTime(Long lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public Long getLastModifyTime() {
		return lastModifyTime;
	}

	public void setIsWarn(Integer isWarn) {
		this.isWarn = isWarn;
	}

	public Integer getIsWarn() {
		return isWarn;
	}

	public void setLog(Log log) {
		this.log = log;
	}

	public Log getLog() {
		return log;
	}

	public void setIpssjf(String ipssjf) {
		this.ipssjf = ipssjf;
	}

	public String getIpssjf() {
		return ipssjf;
	}

	public void setHouseCode(String houseCode) {
		this.houseCode = houseCode;
	}

	public String getHouseCode() {
		return houseCode;
	}
	
	public String getHouseName() {
		return houseName;
	}

	public void setHouseName(String houseName) {
		this.houseName = houseName;
	}

	public void setOperatorsId(String operatorsId) {
		this.operatorsId = operatorsId;
	}

	public String getOperatorsId() {
		return operatorsId;
	}

	public void setOperatorsName(String operatorsName) {
		this.operatorsName = operatorsName;
	}

	public String getOperatorsName() {
		return operatorsName;
	}

	public void setOperatorsBh(String operatorsBh) {
		this.operatorsBh = operatorsBh;
	}

	public String getOperatorsBh() {
		return operatorsBh;
	}

}
